package com.kaka.springboot.order.rabbitmq.consumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = {"duanxin.direct.queue"})
public class DirectDuanxinConsumer {

    @RabbitHandler
    public void receiveMsg(String msg){
        System.out.println("DirectDuanxinConsumer ---接收到的订单信息是：->" + msg);
    }
}
